package com.xinyue.game.gateway;

import com.xinyue.game.gateway.server.GameServerBoot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

/**
 * @author 王广帅
 * @since 2023/6/26 20:46
 **/
@SpringBootApplication
public class GameGatewayServerMain {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(GameGatewayServerMain.class);
        application.setWebApplicationType(WebApplicationType.NONE);
        ApplicationContext context = application.run(args);
        //GameServerBoot.startSocketServer(context);
        GameServerBoot.startWebSocketServer(context);
    }
}
